import style from '@/common/js/style.js'

// #ifdef MP
const systemInfo = uni.getSystemInfoSync();
const statusBarHeight = systemInfo.statusBarHeight;
const windowWidth = systemInfo.windowWidth;
const menuButtonInfo = uni.getMenuButtonBoundingClientRect()
let navBarHeight = menuButtonInfo.height + 2*(menuButtonInfo.top - statusBarHeight);
let navBarRightOffset = windowWidth - menuButtonInfo.left;
// #endif

const settlement ={
	data(){
		return {
			navBarConfig: {
				// #ifndef MP
				fixedHeight: `100rpx`,
				// #endif
				// #ifdef MP
				fixedHeight: `${navBarHeight}px`,
				// #endif
				title: {
					fontFamily: 'tpf-iconfont',
					textStyle: `
								font-size: ${style.UNI_ICON_SIZE_SM};
								`,
					iconList: [
						{
							id: 'settlement',
							text: '提交订单',
						}
					],
				},
				left:{
					fontFamily: 'tpf-iconfont',
					iconStyle: `margin-left: ${style.UNI_SPACING_COL_BASE};`,
					textStyle: `color:${style.UNI_TEXT_COLOR_GREY}`,
					iconList: [
						{
							id: 'back',
							text: '\ue602',
						},
					]
				},
				right: {
					fontFamily: 'tpf-iconfont',
					textStyle: `margin-right: ${style.UNI_SPACING_COL_BASE};
								font-size: ${style.UNI_ICON_SIZE_SM};
								`,
					iconList: [
						{
							id: 'message',
							text: '\ue61d',
						} 
					]
				}
					
			},
			addressConfig:{
				fontFamily: 'tpf-iconfont',
				emptyTip:"你还没有收货地址，请先添加地址。",
				left:{
					id: 'address',
					text: '\ue729',
				},
				right:{
					id: 'more',
					text: '\ue605',
				}
			}
		}
	}
}
export default settlement